home *** CD-ROM | disk | FTP | other *** search
/ Best of Shareware / Best of PC Windows Shareware 1.0 - Wayzata Technology (7111) (1993).iso / mac / ZIPPED / DOS / GRAPHICS / LISS151.ZIP / LISSSRC.ZIP / DEFINES.H next >
C/C++ Source or Header  |  1992-04-20  |  1KB  |  43 lines

  1. /* *****************
  2.    DEFINES.H
  3.        This file contains all the global variables and defined constants
  4.        for both lissajou.c and output.c.
  5.  
  6.        Program originally written by Dan Farmer using algorithms from
  7.        Clifford Pickover.  Converted from QuickBasic to C by Aaron C. Caba.
  8.        See Scientific American January 1991 and Omni February 1990 for
  9.        excellent examples by Pickover.
  10.  
  11.  
  12. History:
  13.  
  14.   12/18/91: ACC Move all defines, and global var's to DEFINES.H
  15.                 I did this to break the program into manageable chunks.
  16.  
  17.  *************************/
  18.  
  19. #ifndef _DEFINES
  20. #define _DEFINES
  21.  
  22. /*======================== Global Structure Types =========================*/
  23. /* structure queue_type.  Holds:  x,y,z -- coordinates of sphere
  24.                                   r     -- radius of sphere
  25. */
  26. struct queue_type {float x; float y; float z;};
  27.  
  28.  
  29. /* #define DEBUG */         /* to turn on debugging routines and such */
  30.  
  31. #define MAXALGO                 5   /* number of possible algorithms    */
  32. #define MAXSPHERES           2000
  33. #define OUTPUT_COLOR_LEN       46
  34. #define PI          (4*atan(1.0))   /* Not apple....                    */
  35. #define VERSION            "1.51"
  36. #define X                       1
  37. #define Y                       2
  38. #define Z                       3
  39. #include <dos.h>                    /* To bump up the stack space -- 
  40.                                        see _stklen in lissajou.h */
  41.  
  42. #endif
  43.